package com.cnap.model.schedule;

import com.cnap.model.common.BaseCondition;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * 查询微服务参数
 *
 * @author xc
 **/
public class QueryMicroServiceParam extends BaseCondition {
    // 应用名称
    @ApiModelProperty(value = "应用名称")
    @NotNull(message = "应用名称不能为null")
    private String applicationName;
    // 服务名称
    @ApiModelProperty(value = "服务名称")
    @NotNull(message = "微服务名称不能为null")
    private String serviceName;

    /**
     * get
     *
     * @return ApplicationName
     */
    public String getApplicationName() {
        return applicationName;
    }

    /**
     * set
     *
     * @param applicationName applicationName
     */
    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    /**
     * get
     *
     * @return ServiceName
     */
    public String getServiceName() {
        return serviceName;
    }

    /**
     * set
     *
     * @param serviceName serviceName
     */
    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    @Override
    public String toString() {
        return "QueryMicroServiceParam{" +
                "pageSize=" + pageSize +
                ", pageNum=" + pageNum +
                ", applicationName='" + applicationName + '\'' +
                ", serviceName='" + serviceName + '\'' +
                '}';
    }
}
